<div class="post">
  <% article.post_sessions.each do |post_session| %>
    <div class="restore">
      <% post_session.posts.each do |post| %>
        <div class="replied">
          <a class="name" href="javascript:;"><%= post.created_by_valleyer.nick_name %></a>
          <p class="time">于<%= time_ago_in_words post.created_at, false %>前说到：</p>
          <p class="details"><%= h post.content %></p>
        </div>
      <% end %>
      <div id="leave_reply_<%= post_session.id %>" class="reply">
        <%= link_to_remote "我也来说两句",
          :update => "leave_reply_#{post_session.id}",
          :url => new_valleyers_show_logs_show_post_url(
          :valleyer_id => @valleyer.id,
          :post_session_id => post_session.id
          ),
          :method => :get,
          :html => {
          :class => "button"
        }  if loggined_by_valleyer?
      %>
      </div>
    </div>
  <% end %>
  <div id="log_reply_<%= article.id %>" class="reply"></div>
</div>